<template>
	<view>
		<!-- 导航 -->
		<view class="nav-left flex-no-horizontal">
			<view>
				<u-icon name="search" color="rgba(179, 180, 181, 1)" size="28"></u-icon>
			</view>
			<view class="nav-input">
				<input type="text" v-model="searchKey" placeholder="种艾草玩法介绍" placeholder-class="nav-input-placeholder" @confirm="childSearchKeyConfirm" />
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchKey:'',
			};
		},
		computed: {
	
		},
		onLoad() {
	
		},
		methods: {
			
			//input确认-传参给父级
			childSearchKeyConfirm(){
				this.$emit('searchKeyConfirm',this.searchKey)
			},
	
		},
	};
</script>

<style lang="scss" scoped>
	.nav-left {
		padding-left: 16rpx;
		width: 600rpx;
		height: 74rpx;
		background-color: rgba(247, 247, 247, 1);
		border-radius: 10rpx;
	
		.nav-input {
			width: 80%;
			height: 100%;
	
			input {
				width: 100%;
				height: 100%;
			}
	
		}
	
		.nav-input-placeholder {
			color: rgba(179, 180, 181, 1);
			font-size: $uni-font-size-sm;
		}
	}
</style>
